<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="../img/favicon.png">
    <link rel="stylesheet" href="../css/base.css">
    <link rel="stylesheet" href="../css/detail.css">
    <link rel="stylesheet" href="../css/header.css">
    <link rel="stylesheet" href="../css/footer.css">
    <title>商品详情-小米有品</title>
</head>
<body>
    <!-- head -->
    <header></header>
    <!-- detail -->
    <div class="detail">
        <div class="con">
            
        </div>
    </div>

     <!-- 登陆提示 -->
     <div class="login">
        <div class="login-con">
            <span class="close"></span>
            <div class="agreement">
                <p class="title">声明与政策</p>
                <div class="contain">
                    <p class="welcome">欢迎您来到小米有品！</p>
                    <p>我们依据最新法律法规要求，制定并更新了<span>《隐私政策》</span>、
                        <span>《小米有品用户协议》</span>以及<span>《小米帐号使用协议》</span>。
                    </p>
                    <p>您需阅读并同意相关政策条款方可进行登录。</p>
                </div>
                <div class="btn-con">
                    <button class="agree">同意并继续</button>
                    <button class="n-agree">不同意</button>
                </div>
            </div>
        </div>
    </div>

    <!-- 加购物车提示 -->
    <div class="prom">
        <div class="gou"></div>
        <p>已成功加入购物车！</p>
    </div>

    <!-- fexed-box -->
    <div class="f-box"></div>

    <!-- footer -->
    <footer></footer>

    <script src="../libs/requirejs/require.js" data-main="../js/detail"></script>
    <script type="text/html" id="detail-temp">
        <div class="c-fix">
            <div class="banner">
                <div class="main">
                    <img src="{{goods.photo[0].url}}" alt="" class="active">
                    <img src="{{goods.photo[1].url}}" alt="">
                    <img src="{{goods.photo[2].url}}" alt="">
                    <img src="{{goods.photo[3].url}}" alt="">
                    <img src="{{goods.photo[4].url}}" alt="">
                </div>
                <div class="thumb">
                    <ul>
                        <li class="active">
                            <img src="{{goods.photo[0].url}}" alt="" >
                        </li>
                        <li>
                            <img src="{{goods.photo[1].url}}" alt="">
                        </li>
                        <li>
                            <img src="{{goods.photo[2].url}}" alt="">
                        </li>
                        <li>
                            <img src="{{goods.photo[3].url}}" alt="">
                        </li>
                        <li>
                            <img src="{{goods.photo[4].url}}" alt="">
                        </li>
                    </ul>
                    <div class="m-up icon">
                        <i ></i>
                    </div>
                    <div class="m-down icon" >
                        <i ></i>
                    </div>
                </div>
            </div>
            <div class="sku">
                <div class="name">
                    <div class="label"></div>
                    <div class="g-name">{{goods.qunTitle}}</div>
                </div>
                <div class="summery">{{goods.title}}</div>
                <div class="p-box">
                    <div class="d-c-box">
                        <p class="pro-fit">优惠券:</p>
                        <div class="gift-info">
                            <span class="g-type">{{goods.couponStatus}}</span>
                            <span class="g-text">{{goods.couponValue}}</span>
                        </div>
                    </div>
                    <div class="p-w">
                        <p class="p-tit">促销:</p>
                        <div class="gift-info">
                            <span class="g-type">满减</span>
                            <span class="g-text">{{goods.coupon.couponText}}</span>
                        </div>
                    </div>
                    <div class="p-w">
                        <span class="p-tit">更多:</span>
                        <span class="p-tit" style="margin-left: 8px;">
                        <span class="word"></span>
                        <span class="word hi-word">{{goods.commodityHint? goods.commodityHint.text : '无'}}</span>
                        </span>
                    </div>
                </div>
                <div class="card">
                    <div class="price-line">
                        <p class="p-t">售价</p>
                        <div class="price">
                            <span class="unit">¥</span>
                            <span class="num">{{goods.price}}</span>
                            <span class="m-p">¥{{goods.originPrice}}</span>
                            <span class="tag">特价</span>
                        </div>
                    </div>
                    <div class="servce-line">
                        <h5 class="p-t">服务</h5>
                        <p class="icon">!</p>
                        <div class="servce">
                            <div class="s-i">
                                <a href="" class="m-icon"></a>
                                <span class="s-text">{{goods.accessoryHints[0]}}</span>
                            </div>
                            <div class="s-i">
                                <a href="" class="m-icon"></a>
                                <span class="s-text">{{goods.accessoryHints[1]}}</span>
                            </div>
                            <div class="s-i">
                                <a href="" class="m-icon"></a>
                                <span class="s-text">{{goods.accessoryHints[2]}}</span>
                            </div>
                            <div class="s-i">
                                <a href="" class="m-icon"></a>
                                <span class="s-text">7天保价</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="addr">
                    <h5>配送区域</h5>
                    <p>四川省 成都市 武侯区 有货 修改</p>
                </div>
                <div class="count">
                    <h5>数量</h5>
                    <div class="c-b">
                        <button class="cut-btn">-</button>
                        <input type="number" value="1" class="amount">
                        <button class="add-btn">+</button>
                    </div>
                </div>
                <div class="button">
                    <button class="add-cart" data-good="{{goods}}">加入购物车</button>
                    <button>立即购买</button>
                    <div class="favor">
                        <i class="iconfont icon-shoucang"></i>
                        <p>收藏</p>
                    </div>
                    <div class="favor">
                        <i class="iconfont icon-kefu"></i>
                        <p>客服</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="d-images">
                {{each goods.descContentList list}}
                <img src="{{list.photo.url}}" alt="">
                {{/each}}
        </div>
    </script>
</body>
</html>